package com.itheima.a_ioc;


public class UserDaoImpl implements UserDao {
/*	下面的代码尤为关键，要理解。*/
	private UserDao userDao;
    public void setUserDao(UserDao userDao) {
			this.userDao = userDao;
		}
		

	@Override
	public void ganhuo() {
	   this.userDao.ganhuo();
		
	}
}
